package p270jp.pxv.android.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.BackStackRecord;
import p014ae.AbstractActivityC0081g1;
import p047bg.C1124a;
import p270jp.pxv.android.R;
import p270jp.pxv.android.commonObjects.model.WorkType;
import p307l9.EdgeTreatment;
import p314lg.ActivityLikedUsersBinding;
import p325m0.MutabilityOwnership;
import p547uh.LikedUsersFragment;
import p671zc.CompositeDisposable;

/* renamed from: jp.pxv.android.activity.LikedUsersActivity */
/* loaded from: classes2.dex */
public class LikedUsersActivity extends AbstractActivityC0081g1 {

    /* renamed from: b0 */
    public long f18385b0;

    /* renamed from: c0 */
    public WorkType f18386c0;

    /* renamed from: d0 */
    public CompositeDisposable f18387d0 = new CompositeDisposable();

    /* renamed from: e1 */
    public static Intent m4815e1(Context context, WorkType workType, long j) {
        EdgeTreatment.m3909i(context);
        EdgeTreatment.m3909i(workType);
        EdgeTreatment.m3910h(j > 0);
        Intent intent = new Intent(context, LikedUsersActivity.class);
        intent.putExtra("WORK_TYPE", workType);
        intent.putExtra("WORK_ID", j);
        return intent;
    }

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, p270jp.pxv.android.activity.BaseActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        C1124a.m10197Q(this, ((ActivityLikedUsersBinding) DataBindingUtil.m11369d(this, R.layout.activity_liked_users)).f22075t, R.string.liked_users);
        this.f18385b0 = getIntent().getLongExtra("WORK_ID", 0);
        this.f18386c0 = (WorkType) getIntent().getSerializableExtra("WORK_TYPE");
        BackStackRecord cVar = new BackStackRecord(m11131K0());
        long j = this.f18385b0;
        WorkType workType = this.f18386c0;
        MutabilityOwnership.m3745m(workType, "workType");
        LikedUsersFragment r4Var = new LikedUsersFragment();
        Bundle bundle2 = new Bundle();
        bundle2.putLong("WORK_ID", j);
        bundle2.putSerializable("WORK_TYPE", workType);
        r4Var.setArguments(bundle2);
        cVar.m11165j(R.id.liked_user_container, r4Var);
        cVar.mo11171d();
    }

    @Override // p014ae.AdActivity, p270jp.pxv.android.activity.BaseActivity, p116e.ActivityC2727f, androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onDestroy() {
        this.f18387d0.m80f();
        super.onDestroy();
    }
}
